package com.freshmarket.freshmarket.dao;

import com.freshmarket.freshmarket.entity.Pages;
import com.freshmarket.freshmarket.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Squirrel
 * @since 2020-09-04
 */
public interface UserMapper extends BaseMapper<User> {


    //查询总条数
    public int selectCountPage(@Param("userName")String userName,@Param("userPhone") String userPhone)throws Exception ;
    //分页查询所有信息
    List<User> selectNowPageAll(@Param("pageStart") int pageStart, @Param("pageSize")int pageSize, @Param("userName")String userName,@Param("userPhone") String userPhone)throws Exception ;
}
